package cn.sciento.boot.tenant.feign;

import cn.sciento.boot.tenant.dto.TenantInitConfigDTO;
import cn.sciento.boot.tenant.dto.TenantInitLogDTO;
import cn.sciento.boot.tenant.feign.fallback.HiamFeignServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "${stong.service.iam.name:stong-iam}",contextId = "HiamFeignService", fallbackFactory = HiamFeignServiceFallbackFactory.class)
public interface HiamFeignService {
  @PostMapping({"/hiam/v1/tenant-init/register"})
  TenantInitConfigDTO registerTenantInitProcessor(TenantInitConfigDTO paramTenantInitConfigDTO);
  
  @PostMapping({"/hiam/v1/tenant-init/log"})
  void log(@RequestBody TenantInitLogDTO paramTenantInitLogDTO);
}
